<?php
	session_start();
	$category = $_SESSION['category'];
	include "../db.php";
	$q = "select username from login where category = '".$category."'";
	$rs = mysql_query($q);
	$result = "";
	if(($row=mysql_fetch_assoc($rs))!=NULL) {
		if(trim($row['username']!=""))
		$result = $row['username'].",";
	}
	while(($row=mysql_fetch_assoc($rs))!=NULL)
	{
		//if(trim($row['username'])!="")
		if($row['username']!="")
		$result = $result.",".$row['username'];
	}
	echo $result;
?>